<span th:fragment="foot"> 
    
    <div class="footer">
        <div class="foot_des">终端机编号:1000010</div>
        <div class="foot_tel">400119-6033</div>
    </div>





    <script type="text/javascript">
    var dvs = document.getElementById('dvs');
        setInterval(function(){
        var d = new Date();
        var y = d.getFullYear();
        var m = d.getMonth()+1;
        var ds = d.getDate();
        if (ds <=9){
            ds ='0'+ds;
        }
        var h = d.getHours();
        if(h <=9){
            h = '0'+h;
        }
        var f = d.getMinutes();
        if(f <=9){
            f = '0'+f;
        }
        var s = d.getSeconds();
        if(s <=9){
            s = '0'+s;
        }
        var days = d.getDay();
        switch(days){
            case 1:
                days='星期一';
                break;
            case 2:
                days='星期二';
                break;
            case 3:
                days='星期三';
                break;
            case 4:
                days='星期四';
                break;
            case 5:
                days='星期五';
                break;
            case 6:
                days='星期六';
                break;
            case 0:
                days='星期日';
                break;
 
        }
        //dvs.innerHTML = y+'-'+m+'-'+ds+'<br> '+h+':'+f+':'+s+' <br>'+days;
        dvs.innerHTML = h+':'+f+':'+s+'<br> '+y+'-'+m+'-'+ds+'  <br>'+days;
       
    },1000)
 
    </script>

</span>